/*
 * @Author: 刘美红 liumeihong@llootong.com
 * @Date: 2025-04-22 18:53:07
 * @LastEditors: 刘美红 liumeihong@llootong.com
 * @LastEditTime: 2025-04-24 16:07:16
 * @FilePath: \xgjd-app\src\api\modules\event.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request';

export default {
  // 获取数据---环形图
  getDataTotalList: (data: any) => {
    return request({
      url: '/integrated-workbench/v1/enforcement/statistics',
      method: 'post',
      data,
      showLoading: true,
    });
  },
  // 查询待处置+待巡查业务数据
  gettaskstatData: (data: any) => {
    return request({
      url: '/integrated-workbench/v1/mobileapp/gettaskstat',
      method: 'post',
      data,
      showLoading: true,
    });
  },
  // 查询首页事件列表--紧急程度+事件列表（查看全部进去）
  getbusizeventlist: (data: any) => {
    return request({
      url: '/integrated-workbench/v1/enforcement/busizeventlist',
      method: 'post',
      data,
      showLoading: true,
    });
  },
  // 查询首页事件列表---最新
  getenforelist: (data: any) => {
    return request({
      url: '/integrated-workbench/v1/enforcement/list',
      method: 'post',
      data,
      showLoading: true,
    });
  },

  // 获取所属社区
  getSqList: (data: any) => {
    return request({
      url: '/integrated-workbench/v1/enforcement/communitycombox',
      method: 'post',
      data,
      showLoading: true,
    });
  },
  // 获取事件类型
  getEventTypeList: (data: any) => {
    return request({
      url: '/integrated-workbench/v1/enforcement/eventdefinecombox',
      method: 'post',
      data,
      showLoading: true,
    });
  },
  // 获取事件等级
  getsjjdList: (data: any) => {
    return request({
      url: '/integrated-workbench/v1/enforcement/eventclasscombox',
      method: 'post',
      data,
      showLoading: true,
    });
  },

  // 获取处置状态
  getczztList: (data: any) => {
    return request({
      url: '/integrated-workbench/v1/enforcement/eventstatuscombox',
      method: 'post',
      data,
      showLoading: true,
    });
  },
  // 获取事件详情
  getEventDetail: (data: any) => {
    return request({
      url: '/integrated-workbench/v1/enforcement/busizeventdetail',
      method: 'post',
      data,
      showLoading: true,
    });
  },
  //确认上传
  confirmhandle: (data: any) => {
    return request({
      url: '/integrated-workbench/v1/enforcement/confirmhandle',
      method: 'post',
      data,
      showLoading: true,
    });
  },
  //获取工具
  gettools: (data: any) => {
    return request({
      url: '/integrated-workbench/v1/mobileapp/gettools',
      method: 'post',
      data,
      showLoading: true,
    });
  },
};
